const User = (props) =>{
  return (
    <div>
      <div>用户名：{props.name}</div>
      <div>用户年龄：{props.age}</div>
    </div>
  )
}


function App() {
  return (
    <div className="App">
      <h1>基础组件使用</h1>
      <User name="张三" age="18"></User>
    </div>
  );
}

export default App;

